
import {ref} from "vue";
import {createMemoryHistory, createRouter} from "vue-router";

const routes = ref([
    {
        path: "/",
        component: () => import("../views/freamwork/index.vue"),
        children: [{
            path: "/harbor",
            component: () => import("../views/harbor/index.vue")
        }, {
            path: "/setting",
            component: () => import("../views/setting/index.vue")
        }, {
            path: "/image",
            component: () => import("../views/image/index.vue")
        }]
    },
])

const router = createRouter({
    history: createMemoryHistory(),
    routes: routes.value
})

export default router